package com.example.designpatterns.templatemethod;

/**
 * 模板方法模式演示类
 */
public class TemplateMethodDemo {
    public static void main(String[] args) {
        System.out.println("===== 制作咖啡 =====");
        BeverageTemplate coffee = new Coffee();
        coffee.prepareBeverage();
        
        System.out.println("\n===== 制作茶 =====");
        BeverageTemplate tea = new Tea();
        tea.prepareBeverage();
    }
} 